.class Lframent/SearchInShopGoodsAdapter$1;
.super Ljava/lang/Object;
.source "SearchInShopGoodsAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lframent/SearchInShopGoodsAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lframent/SearchInShopGoodsAdapter;


# direct methods
.method constructor <init>(Lframent/SearchInShopGoodsAdapter;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lframent/SearchInShopGoodsAdapter$1;->this$0:Lframent/SearchInShopGoodsAdapter;

    .line 100
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    .line 104
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v1

    .line 106
    .local v1, "id":I
    iget-object v3, p0, Lframent/SearchInShopGoodsAdapter$1;->this$0:Lframent/SearchInShopGoodsAdapter;

    # getter for: Lframent/SearchInShopGoodsAdapter;->goodsBeans:Ljava/util/List;
    invoke-static {v3}, Lframent/SearchInShopGoodsAdapter;->access$0(Lframent/SearchInShopGoodsAdapter;)Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lbean/GoodsBean;

    .line 107
    .local v0, "bean":Lbean/GoodsBean;
    invoke-virtual {v0}, Lbean/GoodsBean;->getHave_det()Ljava/lang/String;

    move-result-object v3

    const-string v4, "1"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    .line 108
    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lframent/SearchInShopGoodsAdapter$1;->this$0:Lframent/SearchInShopGoodsAdapter;

    # getter for: Lframent/SearchInShopGoodsAdapter;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/SearchInShopGoodsAdapter;->access$1(Lframent/SearchInShopGoodsAdapter;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/example/m6wmr/DishesParticularActivity;

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 109
    .local v2, "intent":Landroid/content/Intent;
    const-string v3, "goodsid"

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 110
    const-string v3, "open"

    invoke-virtual {v0}, Lbean/GoodsBean;->gettypeid()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 111
    iget-object v3, p0, Lframent/SearchInShopGoodsAdapter$1;->this$0:Lframent/SearchInShopGoodsAdapter;

    # getter for: Lframent/SearchInShopGoodsAdapter;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/SearchInShopGoodsAdapter;->access$1(Lframent/SearchInShopGoodsAdapter;)Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    .line 120
    :goto_0
    return-void

    .line 114
    .end local v2    # "intent":Landroid/content/Intent;
    :cond_0
    new-instance v2, Landroid/content/Intent;

    iget-object v3, p0, Lframent/SearchInShopGoodsAdapter$1;->this$0:Lframent/SearchInShopGoodsAdapter;

    # getter for: Lframent/SearchInShopGoodsAdapter;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/SearchInShopGoodsAdapter;->access$1(Lframent/SearchInShopGoodsAdapter;)Landroid/content/Context;

    move-result-object v3

    const-class v4, Lcom/example/m6wmr/DishesActivity2;

    invoke-direct {v2, v3, v4}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 116
    .restart local v2    # "intent":Landroid/content/Intent;
    const-string v3, "goodsid"

    invoke-virtual {v0}, Lbean/GoodsBean;->getId()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 117
    const-string v3, "open"

    invoke-virtual {v0}, Lbean/GoodsBean;->gettypeid()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 118
    iget-object v3, p0, Lframent/SearchInShopGoodsAdapter$1;->this$0:Lframent/SearchInShopGoodsAdapter;

    # getter for: Lframent/SearchInShopGoodsAdapter;->context:Landroid/content/Context;
    invoke-static {v3}, Lframent/SearchInShopGoodsAdapter;->access$1(Lframent/SearchInShopGoodsAdapter;)Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    goto :goto_0
.end method
